package org.zhaozhen.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zhaozhen.basic.service.impl.BaseServiceImpl;
import org.zhaozhen.system.domain.DictionaryType;
import org.zhaozhen.system.mapper.DictionaryDetailMapper;
import org.zhaozhen.system.mapper.DictionaryTypeMapper;
import org.zhaozhen.system.service.IDictionaryTypeService;
@Service
public class DictionaryTypeServiceImpl extends BaseServiceImpl<DictionaryType> implements IDictionaryTypeService {

    @Autowired
    private DictionaryTypeMapper dictionarytypemapper;
    @Autowired
    private DictionaryDetailMapper dictionarydetailmapper;

    @Override
    public void remove(Long id){
        dictionarydetailmapper.deleteByTypeId(id);
        dictionarytypemapper.delete(id);
    }
}
